package com.mudingkou.mos.common.enums;


import com.mudingkou.mos.common.Message;

/**
 * <p>参数校验异常返回结果</p>
 *
 * @author kzc
 * @date 2020/5/2
 */
public enum ArgumentResultEnum implements Message {
    /**
     * 绑定参数校验异常
     */
    VALID_ERROR(6000, "参数校验异常"),
    ;
    /**
     * 返回码
     */
    private final int code;
    /**
     * 返回消息
     */
    private final String message;

    ArgumentResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }



    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
